package com.rem.service.impl;

import com.rem.pojo.Baby;
import com.rem.service.GirlService;

/**
 * @author remembrance
 * @version 1.0
 * @date 2021/10/12 11:28
 */
public class GirlServiceImpl implements GirlService {

    /**
     * 核心业务：生孩子
     * @param name
     * @param weight
     * @param sex
     * @return
     */
    @Override
    public Baby giveBirth(String name, double weight, String sex) {
        return new Baby(name,weight,sex);
    }
}
